#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main() {
    long int age;
    scanf("%ld", &age);
    printf("%ld", age * (int)(3.156e7));
    return 0;
}